package com.loong.common.domain;


import io.swagger.annotations.ApiParam;
import lombok.*;

/**
 * Created by shengshan.tang on 2015/11/27 at 14:12
 */
@EqualsAndHashCode(callSuper = true)
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery<T> extends BaseDomain {

    @ApiParam(value = "是否删除",example = "false")
    private Boolean delState = false;

    @ApiParam(value = "ID")
    private Long id;

    @ApiParam(value = "用户ID")
    private Long userId;

    @ApiParam(value = "页大小")
    private int pageSize = 10; // default 10

    @ApiParam(value = "第几页")
    private int pageIndex = 1; // 第几页

    @ApiParam(value = "排序字段（多个逗号隔开）")
    private String orderByColumn = "id";  //排序字段多个用逗号隔开

    @ApiParam(value = "排序类型desc,asc（多个逗号隔开）")
    private String ascOrDesc = "desc"; //排序类型多个用逗号隔开

    @ApiParam(value = "限制条数")
    private Integer resultLimit;

    @ApiParam(value = "查询")
    private T data;
}
